<?php
include_once "Fck/fckeditor.php";
function smarty_modifier_fck($strName, $strValue, $ToolbarSet = 'Basic', $Width = '100%', $Height = '400')
{	
	$objFCKeditor = new FCKeditor($strName);
	$objFCKeditor->BasePath 	= 'http://' . $_SERVER['HTTP_HOST'] . '/Fck/';
	$objFCKeditor->Value 		= $strValue;
	$objFCKeditor->ToolbarSet 	= $ToolbarSet;
	$objFCKeditor->Width 		= $Width;
	$objFCKeditor->Height 		= $Height;
	if  ($ToolbarSet == 'Basic2') {
		$objFCKeditor->Config["ForcePasteAsPlainText"] = true;
	}
	$html = $objFCKeditor->Create(); 
	return $html;
}
?>